Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Nix flake along with a package derivation (default.nix) and dev shell (shell.nix). Update hotglsl. #950

Merged
merged 18 commits into from
Jan 25, 2024

Conversation

mitchmindtree
Copy link
Member

@mitchmindtree mitchmindtree commented Jan 17, 2024

These can be ignored by most users, but will be useful for Nix folks and may help to simplify our CI a little.

The default.nix can also be used as a CI-checked reference of what system dependencies and env vars are required on Linux and macOS.

Tested successfully on x86_64-linux and aarch64-darwin.

TODO

  • Rebase onto bevy-refactor branch.
  • Simplify CI dependency installation with Nix.
  • Add section to Contributing.md about Nix.

The hotglsl crate was updated to 0.2 in order to switch from the glsl-to-spirv crate to the pure-Rust naga removing the need for some system deps like libclang.

@tychedelia
Copy link
Collaborator

@mitchmindtree Just had to do this for bevy which was kinda annoying e5fcbe9. The simplest fix would be a composite action but I could be convinced to run nix in ci. ^^

@mitchmindtree mitchmindtree changed the base branch from master to bevy-refactor January 18, 2024 06:01
@mitchmindtree mitchmindtree force-pushed the nix-flake branch 2 times, most recently from e528952 to 1551b42 Compare January 21, 2024 08:49
@mitchmindtree
Copy link
Member Author

OK I've had a go at simplifying the CI a little and added a "Nix Shell" contributing chapter!

@mitchmindtree mitchmindtree merged commit d24220a into nannou-org:bevy-refactor Jan 25, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants